import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/Home.vue')
  },
  {
    path: '/upload',
    name: 'Upload',
    component: () => import('@/views/Upload.vue')
  },
  {
    path: '/library',
    name: 'Library',
    component: () => import('@/views/Library.vue')
  },
  {
    path: '/generate',
    name: 'Generate',
    component: () => import('@/views/Generate.vue')
  },
  {
    path: '/text-generation',
    name: 'TextGeneration',
    component: () => import('@/views/Generate.vue')
  },
  {
    path: '/expand',
    name: 'Expand',
    component: () => import('@/views/Expand.vue')
  },
  {
    path: '/compose',
    name: 'Compose',
    component: () => import('@/views/Compose.vue')
  },
  {
    path: '/test',
    name: 'Test',
    component: () => import('@/views/Test.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router